home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
MPW_TOOL
/
TOOLS
/
TOOLS_WI
/
ICON_8
/
COMMON_F
/
MEMORY.C
< prev
next >
Wrap
Text File
|
1990-03-02
|
451b
|
31 lines
/*
* memory.c -- functions to copy and fill memory.
*/
#include "::h:config.h"
pointer memcopy(to, from, n)
register char *to, *from;
register word n;
{
register char *p = to;
while (--n >= 0)
*to++ = *from++;
return (pointer)p;
}
pointer memfill(to, con, n)
register char *to;
register con;
register word n;
{
register char *p = to;
while (--n >= 0)
*to++ = con;
return (pointer)p;
}